import { Component, OnInit } from '@angular/core';
import { Consts } from '../../models/consts/consts';
import { ApiService } from '../../services/api.service';

@Component({
  selector: 'app-user-list-perm',
  templateUrl: './user-list-perm.component.html',
  styleUrl: './user-list-perm.component.css'
})
export class UserListPermComponent implements OnInit {
  message?: string;

  constructor(private _api: ApiService) {}

  ngOnInit(): void {
    this._api.getUserListPerm().subscribe((resp) => {
      if (resp.code == Consts.RESP_OK && resp.data) {
        this.message = resp.data;
      }
    });
  }
}
